<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Simple Module <i>MixnetBridge</i></h2>
<b>Package:</b> mixnet.modules<br/><b>File: <a href="src-modules-MixnetBridge.ned.html">src/modules/MixnetBridge.ned</a></b><br/><p><a href="../doxy/classMixnetBridge.html" target="mainframe"><b>C++ definition</b></a></p>

<p>INET &lt;-&gt; MiXiM compatibility class. Connects INET network layer
with MiXiM NIC.
See C++ definition for details.</p>
<img src="mixnet.modules.MixnetBridge-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="mixnet.modules.MixnetBridge.html" title="MixnetBridge" alt="MixnetBridge" coords="0,0,130,40">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram. Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="mixnet.modules.MixnetBridge-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="mixnet.modules.MixnetBridge.html" title="Simple Module MixnetBridge" alt="" coords="133,83,232,111">
<area shape="rect" id="node2" href="mixnet.examples.hybrid.HybridRouter.html" title="Compound Module HybridRouter" alt="" coords="5,6,104,34">
<area shape="rect" id="node4" href="mixnet.nodes.Ieee80211Host.html" title="Compound Module Ieee80211Host" alt="" coords="128,6,237,34">
<area shape="rect" id="node6" href="mixnet.nodes.Ieee802154Host.html" title="Compound Module Ieee802154Host" alt="" coords="261,6,379,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram. Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="mixnet.modules.MixnetBridge-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="mixnet.modules.MixnetBridge.html" title="Simple Module MixnetBridge" alt="" coords="5,6,104,34">
</map>
<h3 class="subtitle">Used in compound modules:</h3>
<p>If a module type shows up more than once, that means it has been defined in more than one NED file.</p>
<table>
<tr>
   <td>
      <a href="mixnet.examples.hybrid.HybridRouter.html">HybridRouter</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>Router equipped with all types of NICs existent in the network's hosts,
able to route packages between all of the hosts.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="mixnet.nodes.Ieee80211Host.html">Ieee80211Host</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>This host is an example on how a host with INET network stack
can be equipped with mobility- and wireless-modules from MiXiM. </p>
   </td>
</tr>
<tr>
   <td>
      <a href="mixnet.nodes.Ieee802154Host.html">Ieee802154Host</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>This host is an example on how a host with INET network stack
can be equipped with mobility- and wireless-modules from MiXiM. </p>
   </td>
</tr>
</table>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">notAffectedByHostState</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120">true</td>
   <td>
   </td>
</tr>
<tr class="local">
   <td width="150">address</td>
   <td width="100">
      <i>string</i>
   </td>
   <td width="120">"auto"</td>
   <td>
<p>The INET MAC-address for this bridge's NIC</p>
   </td>
</tr>
<tr class="local">
   <td width="150">mtu</td>
   <td width="100">
      <i>int</i>
   </td>
   <td width="120">1500</td>
   <td>
<p>The maximum transmission unit for this bridge's NIC</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Properties:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Value</th>
      <th>Description</th>
   </tr>
<tr>
   <td width="150">display</td>
   <td width="100"><i>i=block/classifier2</i></td>
   <td></td>
</tr>
</table>
<h3 class="subtitle">Gates:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Direction</th>
      <th>Size</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">upperGateIn</xsl:if></td>
   <td width="100"><i>input</i></td>
   <td width="50"></td>   <td>
<p>from upper layer</p>
</td>
</tr>
<tr class="local">
   <td width="150">upperGateOut</xsl:if></td>
   <td width="100"><i>output</i></td>
   <td width="50"></td>   <td>
<p>to upper layer</p>
</td>
</tr>
<tr class="local">
   <td width="150">lowerGateIn</xsl:if></td>
   <td width="100"><i>input</i></td>
   <td width="50"></td>   <td>
<p>from lower layer</p>
</td>
</tr>
<tr class="local">
   <td width="150">lowerGateOut</xsl:if></td>
   <td width="100"><i>output</i></td>
   <td width="50"></td>   <td>
<p>to lower layer</p>
</td>
</tr>
<tr class="local">
   <td width="150">lowerControlIn</xsl:if></td>
   <td width="100"><i>input</i></td>
   <td width="50"></td>   <td>
<p>control from lower layer</p>
</td>
</tr>
<tr class="local">
   <td width="150">lowerControlOut</xsl:if></td>
   <td width="100"><i>output</i></td>
   <td width="50"></td>   <td>
<p>control to lower layer</p>
</td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">//
// INET &lt;-&gt; MiXiM compatibility class. Connects INET network layer
// with MiXiM NIC.
// See C++ definition for details.
//
</span><span style="color: #800000; font-weight: bold; ">simple</span><span style="color: #000000; "> </span><span style="color: #000000; ">MixnetBridge</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">notAffectedByHostState</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">true</span><span style="color: #000000; ">);

        </span><span style="color: #808080; font-style: italic; ">//The INET MAC-address for this bridge's NIC
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">string</span><span style="color: #000000; "> </span><span style="color: #000000; ">address</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;auto&quot;</span><span style="color: #000000; ">);
        </span><span style="color: #808080; font-style: italic; ">//The maximum transmission unit for this bridge's NIC
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">mtu</span><span style="color: #000000; "> = </span><span style="color: #800000; font-weight: bold; ">default</span><span style="color: #000000; ">(</span><span style="color: #008000; ">1500</span><span style="color: #000000; ">);

        </span><span style="color: #000000; font-weight: bold; ">@display</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;i=block/classifier2&quot;</span><span style="color: #000000; ">);
    </span><span style="color: #800000; font-weight: bold; ">gates</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperGateIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// from upper layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperGateOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// to upper layer
</span><span style="color: #000000; ">
        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerGateIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// from lower layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerGateOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// to lower layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerControlIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control from lower layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerControlOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control to lower layer
</span><span style="color: #000000; ">}
</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
